#!/usr/bin/python
# List attributes of an object.

import inspect

def first(seq):
    return seq[0]

def atts(obj):
    """ Return a list of attributes of object obj. """
    return map(first, inspect.getmembers(obj))
